<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>角色添加</title>
</head>
<body>
<form class="layui-form" lay-filter="roleForm" id="add_role_form" action="" style="padding:15px 10px;">
    <input type="hidden" name="roleId" class="roleId">
    <div class="layui-form-item">
        <label class="layui-form-label">角色名称</label>
        <div class="layui-input-block">
            <input type="text" name="roleName" required  lay-verify="required" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <script>
        layui.form.render();
       /* $.get("http://localhost:9999/role/rolelist",function(data){
            $.each(data,function(){
                var opt = $("<option></option>").appendTo("#roles_add");
                opt.text(this.rolename).val(this.roleid);
            });
            layui.formSelects.render()
        });*/

    </script>
</form>
</body>
</html>